package com.mall.shopping.dto.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品描述表
 * </p>
 *
 * @author xrj
 * @since 2022-05-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TbItemDesc extends Model<TbItemDesc> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    @TableId("item_id")
    private Long itemId;

    /**
     * 商品描述
     */
    @TableField("item_desc")
    private String itemDesc;

    /**
     * 创建时间
     */
    @TableField("created")
    private LocalDateTime created;

    /**
     * 更新时间
     */
    @TableField("updated")
    private LocalDateTime updated;


    @Override
    protected Serializable pkVal() {
        return this.itemId;
    }

}
